<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>实名认证</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="../../plugins/mui/mui.min.css">
		<link rel="stylesheet" type="text/css" href="../../plugins/mui/picker/mui.picker.css"/>
		<link rel="stylesheet" href="../../plugins/mui/picker/mui.poppicker.css" />
		<script src="../../js/statistics.js"></script>
		<style type="text/css">
			 *{
            box-sizing: border-box;
            font-family: 'Microsoft YaHei';
	        }
	        body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, form,  input, p, table, th, td ,select,option{
	            padding: 0;
	            margin: 0;
	            list-style: none;
	        }
	        body{
	        	padding-top:45px;
	        	padding-bottom:10px;
	        	background-color:#fff;
	        }
	        .clearfix:before{
            display:table;
            content:'';
	        }
	        .clearfix:after{
	            display:table;
	            content:'';
	            clear:both;
	        }
			/*title的样式覆盖*/
			.mui-bar{
				background-color:#2a2c33;
				top:0;
			}
			.mui-bar>a{
				color:#fff;
			}
			.mui-title{
				color:#fff;
			}
			.mui-input-row:after{
				display:none;
			}
			.mui-input-group:before{
				display:none;
			}
			.mui-input-group:after{
				display:none;
			}
			#input1::-webkit-input-placeholder{
				line-height: 22px;
			}
			/*百分比优化*/
			.mui-input-clear{
				padding: 11px 4%;
			}
			
			
			.main1{
				position: absolute;
				width:100%;
				height:auto;
				top: 50%;
				-webkit-transform: translateY(-50%) ;
			}
			div>img{
				width:30%;
				margin:0 auto;
				display:block;
			}
			div>p{
				font-size:18px;
				line-height: 18px;
				margin-top:16px;
				text-align: center;
				color:#999;
			}
			#a1{
				display:block;
				text-align: center;
				margin-top:10px;
				color:#43AC45;
				font-size: 14px;
				line-height: 14px;
				display:none;
				width:100%;
			}
			.look-info{
				display: block;
				text-align: center;
				margin-top: 15px;
				color:#43AC45;
				font-size: 14px;
				line-height: 14px;
			}
			
		</style>
	</head>
	<body>
		<header class="mui-bar ">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">实名认证</h1>
		</header>
		<div class='main1'>
			<img src="" alt="" id='img'>
			<p id='p'></p>
			<a href="javascript:;" id="lookInfo" class="look-info mui-hidden">查看认证信息</a>
			<a id='a1'>重新认证</a>
		</div>
		
		<script type="text/javascript" src="../../plugins/jquery/jquery-3.1.0.min.js"></script>
		<script src="../../plugins/mui/mui.min.js"></script>
		<script src="../../js/getApiToken.js"></script>
		<script src="../../js/md5.js"></script>
		<script type="text/javascript">

			mui.plusReady(function(){
				var self=plus.webview.currentWebview();		
				plus.nativeUI.closeWaiting();
				//显示当前页面
				mui.currentWebview.show('slide-in-right',200);
				console.log("cg_certification:"+plus.storage.getItem('cg_certification'));
				if(plus.storage.getItem('cg_certification')==0){
					$('#img')[0].src='../../images/my/index/audit_ing.png';
					$('#p').html('审核中');
				}else if(plus.storage.getItem('cg_certification')==1){
					$('#img')[0].src='../../images/my/index/audit_ok.png';
					$('#p').html('认证成功');
					$("#lookInfo").removeClass("mui-hidden");
					$("#lookInfo").click(function(){
						mui.openWindow({
						    url:'user-9-1.html',
						    id:'user-9-1.html',
						     show:{
							      autoShow:true,//页面loaded事件发生后自动显示，默认为true
							      duration:200//页面动画持续时间，Android平台默认100毫秒，iOS平台默认200毫秒；
							},
							 waiting:{
						      	title:'正在加载...'//等待对话框上显示的提示内容
						    }
						})
					})
				}else if(plus.storage.getItem('cg_certification')==2){
					$('#img')[0].src='../../images/my/index/audit_no.png';
					$('#p').html('认证失败');
					$("#lookInfo").removeClass("mui-hidden");
					$("#lookInfo").click(function(){
						mui.openWindow({
						    url:'user-9-1.html',
						    id:'user-9-1.html',
						     show:{
							      autoShow:true,//页面loaded事件发生后自动显示，默认为true
							      duration:200//页面动画持续时间，Android平台默认100毫秒，iOS平台默认200毫秒；
							},
							 waiting:{
						      	title:'正在加载...'//等待对话框上显示的提示内容
						    },
						    extras:{
						    	'type':'error'
						    }
						})
					})
					$('#a1').show().css({'display':'block'});
				}
				$('#a1').click(function(){
//					mui.back();
					self.close();
					mui.openWindow({
					    url:'user-4.html',
					    id:'user-4.html',
					     show:{
						      autoShow:true,//页面loaded事件发生后自动显示，默认为true
						      duration:200//页面动画持续时间，Android平台默认100毫秒，iOS平台默认200毫秒；
						},
						 waiting:{
					      	title:'正在加载...'//等待对话框上显示的提示内容
					     },
					      extras:{
					      'name':name
					    }
					})
					
						
					
				
				});
			});
		</script>
	</body>
</html>




